/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-11-14     ZeroFree     first implementation
 * 2019-07-28     Ernest       perfect player, add record and other APIs
 */

#ifndef __DRV_TOUCH_H__
#define __DRV_TOUCH_H__

#include <rtthread.h>
#include <rtdevice.h>
#include "drv_gpio.h"

#define TOUCH_RESET_PIN GET_PIN(B,8)

rt_err_t drv_touch_write_reg(struct rt_i2c_bus_device *dev, rt_uint8_t *data, rt_uint16_t len);
rt_err_t drv_touch_read_reg(struct rt_i2c_bus_device *dev, rt_uint8_t *data, rt_uint16_t len);
rt_err_t drv_touch_write_read(struct rt_i2c_bus_device *dev, rt_uint8_t *tx, rt_uint16_t tx_len, rt_uint8_t *rx, rt_uint16_t rx_len);
void drv_touch_init(void);

#endif
